
function copy(val:string):boolean{
   let input =document.createElement('input')
   input.value=val
   document.body.appendChild(input)
   input.select()
   document.execCommand("copy")
   document.body.removeChild(input)
   return true
}
export default copy